home *** CD-ROM | disk | FTP | other *** search
- Path: news.PBI.net!usenet
- From: mich@pbinet.com
- Newsgroups: comp.lang.c
- Subject: Re: Help! C code under Win 3.11
- Date: 9 Mar 1996 17:51:16 GMT
- Organization: Pacific Bell Internet Services
- Message-ID: <4hsgek$efq@SNFC21_SRVR_WWW.PBI.net>
- References: <4gko20$oha@earth.alpha.net> <4glbu9$jlo@news.nstn.ca>
- Reply-To: mich@pbinet.com
- NNTP-Posting-Host: ppp-5-36.rdcy01.pbinet.com
- X-Newsreader: IBM NewsReader/2 v1.03
-
- In <4glbu9$jlo@news.nstn.ca>, keichele@ac.dal.ca (Klaus Eichele) writes:
- >sdg@earth.execpc.com (Software Development Group) wrote:
- >>/* main(int argc, char **argv)*/
- >>/* {*/
-
- >>WINAPI
- >>WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow)
- >>{
- >> #define MAXCMDTOKENS 128
- >> int argc = 0;
- >> LPSTR argv[MAXCMDTOKENS];
-
- >Hi,
- >The major problem here lies in the misconception that renaming main()
- >into WinMain() creates a Windows 3.11 application.
-
- His main problem is that he's not using the WinMain arguments. He must atleast
- copy lpstrcmdlin, etc, to argv, etc.
-
- >P.S. comp.lang.c is the completely wrong group for questions like
- >this, and I am sure other people will point this out also. Try
- >comp.os.ms-windows.programmers.misc and related groups.
-
- Agreed. This will be my last word on the subject...
-
-